﻿using System;
using System.ServiceModel.Web;
using IapApp;
using IapService.Data;
using IapService.Entity;

namespace IapService.Service
{
    public partial class UserService
    {
        [WebGet(UriTemplate = "{id}")]
        public ServiceResponse<User> Get(string id)
        {
            return Execute(() =>
                                {
                                    var idInt = Convert.ToInt32(id);
                                    return new UserData().Get(idInt);
                                });
        }
    }
}